package com.auto.admin.service.impl;

import com.auto.admin.entity.Beans;
import com.auto.admin.mapper.BeansMapper;
import com.auto.admin.service.BeansService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 * Description: bean 组件解析 服务实现类
 *
 * @author liangshf
 * @date 2021-01-27
 */
@Service
public class BeansServiceImpl extends ServiceImpl<BeansMapper, Beans> implements BeansService {

    @Override
    public List<Beans> findByApplicationName(String applicationName) {
        QueryWrapper<Beans> wrapper = new QueryWrapper<>();
        wrapper.eq("application_name", applicationName);
        wrapper.eq("del", 0);
        return baseMapper.selectList(wrapper);
    }
}
